home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- # The text of this plugin is (C) Red Hat Inc.
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(12457);
- script_version ("$Revision: 1.4 $");
- script_cve_id("CAN-2003-0056", "CAN-2003-0848");
-
- name["english"] = "RHSA-2004-041: slocate";
-
- script_name(english:name["english"]);
-
- desc["english"] = '
-
- Updated slocate packages are now available that fix vulnerabilities
- allowing a local user to gain "slocate" group privileges.
-
- Slocate is a security-enhanced version of locate, designed to find files on
- a system via a central database.
-
- Patrik Hornik discovered a vulnerability in Slocate versions up to and
- including 2.7 where a carefully crafted database could overflow a
- heap-based buffer. A local user could exploit this vulnerability to gain
- "slocate" group privileges and then read the entire slocate database. The
- Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
- the name CAN-2003-0848 to this issue.
-
- Users of Slocate should upgrade to these erratum packages, which contain
- Slocate version 2.7 with the addition of a patch from Kevin Lindsay that
- causes slocate to drop privileges before reading a user-supplied database.
-
- For Red Hat Enterprise Linux 2.1 these packages also fix a buffer overflow
- that affected unpatched versions of Slocate prior to 2.7. This
- vulnerability could also allow a local user to gain "slocate" group
- privileges. The Common Vulnerabilities and Exposures project
- (cve.mitre.org) has assigned the name CAN-2003-0056 to this issue.
-
-
-
-
- Solution : http://rhn.redhat.com/errata/RHSA-2004-041.html
- Risk factor : High';
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the slocate packages";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Red Hat Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
-
- script_require_keys("Host/RedHat/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"slocate-2.7-1", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"slocate-2.7-3", release:"RHEL3") )
- {
- security_hole(0);
- exit(0);
- }
-
- if ( rpm_exists(rpm:"slocate-", release:"RHEL2.1") )
- {
- set_kb_item(name:"CAN-2003-0056", value:TRUE);
- set_kb_item(name:"CAN-2003-0848", value:TRUE);
- }
- if ( rpm_exists(rpm:"slocate-", release:"RHEL3") )
- {
- set_kb_item(name:"CAN-2003-0056", value:TRUE);
- set_kb_item(name:"CAN-2003-0848", value:TRUE);
- }
-
- set_kb_item(name:"RHSA-2004-041", value:TRUE);
-